
<%@page import="board.BoardVo"%>
<%@page import="java.util.ArrayList"%>
<%@page import="board.BoardMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>list(회원)</title>
<script>
function btnInsert(){
	location.href="insert.jsp";
	
}


</script>

</head>
<body>
<jsp:useBean id='vo' class='board.BoardVo'/>
<jsp:setProperty property="*" name="vo"/>
<%
vo.setPart("공지사항");
BoardMyba board=new BoardMyba();
board.setBoardvo(vo);
ArrayList<BoardVo> data = board.list();
%>

<form name='board_list' method='post' action='list.jsp'>

	<input type='search' name='find' value='<%=vo.getFind() %>'>
	<input type='submit' value='검색'>
	<input type='button' value='삽입' onclick='btnInsert()'>
</form>

<hr/>

<%
for(int i=0; i<data.size(); i++){
	
	BoardVo v =data.get(i);
	out.print("<div>");
	out.print("<a href='view.jsp?serial="+ v.getSerial()+"'>"+v.getSerial()+"</a> ," + v.getContent());
	out.print("</div>");
}

%>

</body>
</html>